Skip to content

Conversation

liufengyun
Copy link
Contributor

Add test case for #1463 .

@liufengyun liufengyun merged commit 1f5343c into scala:master Sep 27, 2017
@liufengyun liufengyun deleted the fix-1463 branch September 27, 2017 20:46

def f0(x: Any) = x match { case Bob2 => Bob2 }
def f1(x: Any) = x match { case Bob => Bob }
// def f2(x: Any): Bob.type = x match { case x @ Bob => x } // should not type check
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a neg test for that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants